package com.h.heal.service;

import com.h.heal.common.MyPageInfo;
import com.h.heal.entity.Topic;


import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface TopicService {
    List<Topic> findAll();

    void deleteById(int id);
    //文章名查找视频
    List<Topic> findByTopic_title(String topic_title);
    //用户名查找视频
    List<Topic> findByTopic_uid(String topic_uid);

    String create(Topic topic);

    Topic findById(int id);

    String edit(Topic topic);


    MyPageInfo findBySearch(HttpServletRequest request);

    MyPageInfo findBySearchUser(HttpServletRequest request);
}
